package com.liuhaha.auth.domain.convert;

import com.liuhaha.auth.domain.entity.AuthUserBO;
import com.liuhaha.auth.infra.basic.entity.AuthUser;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author liuhaha
 * @version 1.0
 * @date 2024-05-19 18:10
 */
@Mapper
public interface AuthUserBOConverter {

    AuthUserBOConverter INSTANCE = Mappers.getMapper(AuthUserBOConverter.class);

    AuthUser convertBOToEntity(AuthUserBO authUserBO);

    AuthUserBO convertEntityToBo(AuthUser authUser);

}
